package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.Setmeal;
import com.sky.entity.SetmealDish;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: XJH
 * @Description: TODO
 * @Date: 2025/6/4 22:13
 * @Version: 1.0
 */
@Mapper
public interface SetmealDishMapper {
    /**
     * 批量插入套餐中菜品数据
     * @param setmealDishes
     */

    void insertBatch( @Param("setmealDishes")List<SetmealDish> setmealDishes);
    /**
     * 根据套餐id删除套餐中菜品数据
     * @param id
     */
    void DeleteByDishId(Long id);
    /**
      * 根据套餐id查询套餐中菜品数据
      * @param id
      * @return
      */
    List<SetmealDish> getBySetmealId(Long id);
}
